home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
programr
/
wtj009.zip
/
METAFILE.ZIP
/
METASAVE.PAS
< prev
Wrap
Pascal/Delphi Source File
|
1992-09-04
|
700b
|
29 lines
program metasave;
Uses WinProcs, WinTypes;
procedure Meta2Aldus (SrcMeta:THandle; var Place:TRect;
nUnit:Integer; FName:PChar); far;
external 'ameta';
Var
hMetaDC:HDC;
hMeta:THandle;
MyRect:TRect;
Begin
hMetaDC := CreateMetaFile (Nil);
SetWindowOrg (hMetaDC, 0, 0);
SetWindowExt (hMetaDC, 100, 100);
Rectangle (hMetaDC, 0, 0, 100, 100);
MoveTo (hMetaDC, 0, 0);
LineTo (hMetaDC, 100, 100);
MoveTo (hMetaDC, 0, 100);
LineTo (hMetaDC, 100, 0);
hMeta := CloseMetaFile (hMetaDC);
MyRect.Right := 1000;
MyRect.Bottom := 1400;
Meta2Aldus (hMeta, MyRect, 10, 'MYMETA.WMF');
DeleteMetaFile (hMeta);
End.